package zl.jmail;
/**
 * @author  SuperZL 
 * @version 2012-9-3 上午10:54:14
 */
public class JMailTest {

	public static void main(String[] args){
		MailSendInfo mailInfo = new MailSendInfo(); 
		mailInfo.setMailServerHost("smtp.qq.com"); 
		mailInfo.setMailServerPort("25"); 
		mailInfo.setValidate(true); 
		mailInfo.setUsername("1603013767@qq.com"); 
		mailInfo.setPassword("O0:13545793249");//您的邮箱密码 
		mailInfo.setFromAddress("1603013767@qq.com"); 
		mailInfo.setToAddress("1020543841@qq.com"); 
		mailInfo.setSubject("aaaa"); 
		mailInfo.setContent("aaaa"); 
		//这个类主要来发送邮件 
		SimpleMailSender sms = new SimpleMailSender(); 
		if(sms.sendTextMail(mailInfo))	//发送文体格式
			System.out.println("发送成功");
	}
}
